//
//	MCVIPOrderInfoList.swift
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport

import Foundation 
import ObjectMapper


class MCVIPOrderInfoList : NSObject, NSCoding, Mappable{

	var createTime : String?
	var createUser : Int?
	var id : String?
	var isDeleted : Int?
	var orderName : String?
	var orderPrice : Int?
	var orderStatus : Int?
	var orderType : Int?
	var payTime : String?
	var payType : Int?
	var sort : Int?
	var transactionNumber : String?
	var updateTime : String?
	var updateUser : Int?
	var userId : Int?
	var version : Int?


	class func newInstance(map: Map) -> Mappable?{
		return MCVIPOrderInfoList()
	}
	required init?(map: Map){}
	private override init(){}

	func mapping(map: Map)
	{
		createTime <- map["createTime"]
		createUser <- map["createUser"]
		id <- map["id"]
		isDeleted <- map["isDeleted"]
		orderName <- map["orderName"]
		orderPrice <- map["orderPrice"]
		orderStatus <- map["orderStatus"]
		orderType <- map["orderType"]
		payTime <- map["payTime"]
		payType <- map["payType"]
		sort <- map["sort"]
		transactionNumber <- map["transactionNumber"]
		updateTime <- map["updateTime"]
		updateUser <- map["updateUser"]
		userId <- map["userId"]
		version <- map["version"]
		
	}

    /**
    * NSCoding required initializer.
    * Fills the data from the passed decoder
    */
    @objc required init(coder aDecoder: NSCoder)
	{
         createTime = aDecoder.decodeObject(forKey: "createTime") as? String
         createUser = aDecoder.decodeObject(forKey: "createUser") as? Int
         id = aDecoder.decodeObject(forKey: "id") as? String
         isDeleted = aDecoder.decodeObject(forKey: "isDeleted") as? Int
         orderName = aDecoder.decodeObject(forKey: "orderName") as? String
         orderPrice = aDecoder.decodeObject(forKey: "orderPrice") as? Int
         orderStatus = aDecoder.decodeObject(forKey: "orderStatus") as? Int
         orderType = aDecoder.decodeObject(forKey: "orderType") as? Int
         payTime = aDecoder.decodeObject(forKey: "payTime") as? String
         payType = aDecoder.decodeObject(forKey: "payType") as? Int
         sort = aDecoder.decodeObject(forKey: "sort") as? Int
         transactionNumber = aDecoder.decodeObject(forKey: "transactionNumber") as? String
         updateTime = aDecoder.decodeObject(forKey: "updateTime") as? String
         updateUser = aDecoder.decodeObject(forKey: "updateUser") as? Int
         userId = aDecoder.decodeObject(forKey: "userId") as? Int
         version = aDecoder.decodeObject(forKey: "version") as? Int

	}

    /**
    * NSCoding required method.
    * Encodes mode properties into the decoder
    */
    @objc func encode(with aCoder: NSCoder)
	{
		if createTime != nil{
			aCoder.encode(createTime, forKey: "createTime")
		}
		if createUser != nil{
			aCoder.encode(createUser, forKey: "createUser")
		}
		if id != nil{
			aCoder.encode(id, forKey: "id")
		}
		if isDeleted != nil{
			aCoder.encode(isDeleted, forKey: "isDeleted")
		}
		if orderName != nil{
			aCoder.encode(orderName, forKey: "orderName")
		}
		if orderPrice != nil{
			aCoder.encode(orderPrice, forKey: "orderPrice")
		}
		if orderStatus != nil{
			aCoder.encode(orderStatus, forKey: "orderStatus")
		}
		if orderType != nil{
			aCoder.encode(orderType, forKey: "orderType")
		}
		if payTime != nil{
			aCoder.encode(payTime, forKey: "payTime")
		}
		if payType != nil{
			aCoder.encode(payType, forKey: "payType")
		}
		if sort != nil{
			aCoder.encode(sort, forKey: "sort")
		}
		if transactionNumber != nil{
			aCoder.encode(transactionNumber, forKey: "transactionNumber")
		}
		if updateTime != nil{
			aCoder.encode(updateTime, forKey: "updateTime")
		}
		if updateUser != nil{
			aCoder.encode(updateUser, forKey: "updateUser")
		}
		if userId != nil{
			aCoder.encode(userId, forKey: "userId")
		}
		if version != nil{
			aCoder.encode(version, forKey: "version")
		}

	}

}
